<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>libcoap: coap_async_state_t Struct Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">libcoap<span id="projectnumber">&#160;4.2.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.8 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('structcoap__async__state__t.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-attribs">Data Fields</a>  </div>
  <div class="headertitle"><div class="title">coap_async_state_t Struct Reference<div class="ingroups"><a class="el" href="group__coap__async.html">Asynchronous Messaging</a></div></div></div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="async_8h_source.html">async.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-attribs" name="pub-attribs"></a>
Data Fields</h2></td></tr>
<tr class="memitem:a34237f37d4c44962f4c4f0dbf39560c1" id="r_a34237f37d4c44962f4c4f0dbf39560c1"><td class="memItemLeft" align="right" valign="top">unsigned char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcoap__async__state__t.html#a34237f37d4c44962f4c4f0dbf39560c1">flags</a></td></tr>
<tr class="memdesc:a34237f37d4c44962f4c4f0dbf39560c1"><td class="mdescLeft">&#160;</td><td class="mdescRight">holds the flags to control behaviour  <br /></td></tr>
<tr class="separator:a34237f37d4c44962f4c4f0dbf39560c1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2ce04f273a47df97dfb8af270c858007" id="r_a2ce04f273a47df97dfb8af270c858007"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__clock.html#ga97ff1502e211b4ee6c3f15a598833438">coap_tick_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcoap__async__state__t.html#a2ce04f273a47df97dfb8af270c858007">created</a></td></tr>
<tr class="memdesc:a2ce04f273a47df97dfb8af270c858007"><td class="mdescLeft">&#160;</td><td class="mdescRight">Holds the internal time when the object was registered with a resource.  <br /></td></tr>
<tr class="separator:a2ce04f273a47df97dfb8af270c858007"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8bfdf12963290e8284e1510b093b17c1" id="r_a8bfdf12963290e8284e1510b093b17c1"><td class="memItemLeft" align="right" valign="top">void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcoap__async__state__t.html#a8bfdf12963290e8284e1510b093b17c1">appdata</a></td></tr>
<tr class="memdesc:a8bfdf12963290e8284e1510b093b17c1"><td class="mdescLeft">&#160;</td><td class="mdescRight">This field can be used to register opaque application data with the asynchronous state object.  <br /></td></tr>
<tr class="separator:a8bfdf12963290e8284e1510b093b17c1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae1874a371493a956e758306efe180f28" id="r_ae1874a371493a956e758306efe180f28"><td class="memItemLeft" align="right" valign="top">uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcoap__async__state__t.html#ae1874a371493a956e758306efe180f28">message_id</a></td></tr>
<tr class="memdesc:ae1874a371493a956e758306efe180f28"><td class="mdescLeft">&#160;</td><td class="mdescRight">id of last message seen  <br /></td></tr>
<tr class="separator:ae1874a371493a956e758306efe180f28"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9c0087c5ff046a7f49b036f1d1d22657" id="r_a9c0087c5ff046a7f49b036f1d1d22657"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structcoap__session__t.html">coap_session_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcoap__async__state__t.html#a9c0087c5ff046a7f49b036f1d1d22657">session</a></td></tr>
<tr class="memdesc:a9c0087c5ff046a7f49b036f1d1d22657"><td class="mdescLeft">&#160;</td><td class="mdescRight">transaction session  <br /></td></tr>
<tr class="separator:a9c0087c5ff046a7f49b036f1d1d22657"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af6bd1cb2573d3b38e5c1c1175d52f471" id="r_af6bd1cb2573d3b38e5c1c1175d52f471"><td class="memItemLeft" align="right" valign="top"><a class="el" href="pdu_8h.html#ac60fb9284ace878df3db4a2d621d9a8d">coap_tid_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcoap__async__state__t.html#af6bd1cb2573d3b38e5c1c1175d52f471">id</a></td></tr>
<tr class="memdesc:af6bd1cb2573d3b38e5c1c1175d52f471"><td class="mdescLeft">&#160;</td><td class="mdescRight">transaction id  <br /></td></tr>
<tr class="separator:af6bd1cb2573d3b38e5c1c1175d52f471"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac374efafdd91c332f92c8fc5f33f0a0e" id="r_ac374efafdd91c332f92c8fc5f33f0a0e"><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="structcoap__async__state__t.html">coap_async_state_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcoap__async__state__t.html#ac374efafdd91c332f92c8fc5f33f0a0e">next</a></td></tr>
<tr class="memdesc:ac374efafdd91c332f92c8fc5f33f0a0e"><td class="mdescLeft">&#160;</td><td class="mdescRight">internally used for linking  <br /></td></tr>
<tr class="separator:ac374efafdd91c332f92c8fc5f33f0a0e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9ac15543c19c679be1f77442671454fb" id="r_a9ac15543c19c679be1f77442671454fb"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcoap__async__state__t.html#a9ac15543c19c679be1f77442671454fb">tokenlen</a></td></tr>
<tr class="memdesc:a9ac15543c19c679be1f77442671454fb"><td class="mdescLeft">&#160;</td><td class="mdescRight">length of the token  <br /></td></tr>
<tr class="separator:a9ac15543c19c679be1f77442671454fb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ada1019c039810e4f719866f773ac2fb8" id="r_ada1019c039810e4f719866f773ac2fb8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="uthash_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcoap__async__state__t.html#ada1019c039810e4f719866f773ac2fb8">token</a> [8]</td></tr>
<tr class="memdesc:ada1019c039810e4f719866f773ac2fb8"><td class="mdescLeft">&#160;</td><td class="mdescRight">the token to use in a response  <br /></td></tr>
<tr class="separator:ada1019c039810e4f719866f773ac2fb8"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock">
<p class="definition">Definition at line <a class="el" href="async_8h_source.html#l00031">31</a> of file <a class="el" href="async_8h_source.html">async.h</a>.</p>
</div><h2 class="groupheader">Field Documentation</h2>
<a id="a8bfdf12963290e8284e1510b093b17c1" name="a8bfdf12963290e8284e1510b093b17c1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8bfdf12963290e8284e1510b093b17c1">&#9670;&#160;</a></span>appdata</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void* coap_async_state_t::appdata</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This field can be used to register opaque application data with the asynchronous state object. </p>

<p class="definition">Definition at line <a class="el" href="async_8h_source.html#l00045">45</a> of file <a class="el" href="async_8h_source.html">async.h</a>.</p>

</div>
</div>
<a id="a2ce04f273a47df97dfb8af270c858007" name="a2ce04f273a47df97dfb8af270c858007"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2ce04f273a47df97dfb8af270c858007">&#9670;&#160;</a></span>created</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__clock.html#ga97ff1502e211b4ee6c3f15a598833438">coap_tick_t</a> coap_async_state_t::created</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Holds the internal time when the object was registered with a resource. </p>
<p>This field will be updated whenever <a class="el" href="group__coap__async.html#ga7ff79a6925e27b7146184135023e1b40" title="Allocates a new coap_async_state_t object and fills its fields according to the given request.">coap_register_async()</a> is called for a specific resource. </p>

<p class="definition">Definition at line <a class="el" href="async_8h_source.html#l00039">39</a> of file <a class="el" href="async_8h_source.html">async.h</a>.</p>

</div>
</div>
<a id="a34237f37d4c44962f4c4f0dbf39560c1" name="a34237f37d4c44962f4c4f0dbf39560c1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a34237f37d4c44962f4c4f0dbf39560c1">&#9670;&#160;</a></span>flags</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned char coap_async_state_t::flags</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>holds the flags to control behaviour </p>

<p class="definition">Definition at line <a class="el" href="async_8h_source.html#l00032">32</a> of file <a class="el" href="async_8h_source.html">async.h</a>.</p>

</div>
</div>
<a id="af6bd1cb2573d3b38e5c1c1175d52f471" name="af6bd1cb2573d3b38e5c1c1175d52f471"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af6bd1cb2573d3b38e5c1c1175d52f471">&#9670;&#160;</a></span>id</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="pdu_8h.html#ac60fb9284ace878df3db4a2d621d9a8d">coap_tid_t</a> coap_async_state_t::id</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>transaction id </p>

<p class="definition">Definition at line <a class="el" href="async_8h_source.html#l00048">48</a> of file <a class="el" href="async_8h_source.html">async.h</a>.</p>

</div>
</div>
<a id="ae1874a371493a956e758306efe180f28" name="ae1874a371493a956e758306efe180f28"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae1874a371493a956e758306efe180f28">&#9670;&#160;</a></span>message_id</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint16_t coap_async_state_t::message_id</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>id of last message seen </p>

<p class="definition">Definition at line <a class="el" href="async_8h_source.html#l00046">46</a> of file <a class="el" href="async_8h_source.html">async.h</a>.</p>

</div>
</div>
<a id="ac374efafdd91c332f92c8fc5f33f0a0e" name="ac374efafdd91c332f92c8fc5f33f0a0e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac374efafdd91c332f92c8fc5f33f0a0e">&#9670;&#160;</a></span>next</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct <a class="el" href="structcoap__async__state__t.html">coap_async_state_t</a>* coap_async_state_t::next</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>internally used for linking </p>

<p class="definition">Definition at line <a class="el" href="async_8h_source.html#l00049">49</a> of file <a class="el" href="async_8h_source.html">async.h</a>.</p>

</div>
</div>
<a id="a9c0087c5ff046a7f49b036f1d1d22657" name="a9c0087c5ff046a7f49b036f1d1d22657"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9c0087c5ff046a7f49b036f1d1d22657">&#9670;&#160;</a></span>session</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structcoap__session__t.html">coap_session_t</a>* coap_async_state_t::session</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>transaction session </p>

<p class="definition">Definition at line <a class="el" href="async_8h_source.html#l00047">47</a> of file <a class="el" href="async_8h_source.html">async.h</a>.</p>

</div>
</div>
<a id="ada1019c039810e4f719866f773ac2fb8" name="ada1019c039810e4f719866f773ac2fb8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ada1019c039810e4f719866f773ac2fb8">&#9670;&#160;</a></span>token</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="uthash_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> coap_async_state_t::token[8]</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>the token to use in a response </p>

<p class="definition">Definition at line <a class="el" href="async_8h_source.html#l00051">51</a> of file <a class="el" href="async_8h_source.html">async.h</a>.</p>

</div>
</div>
<a id="a9ac15543c19c679be1f77442671454fb" name="a9ac15543c19c679be1f77442671454fb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9ac15543c19c679be1f77442671454fb">&#9670;&#160;</a></span>tokenlen</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t coap_async_state_t::tokenlen</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>length of the token </p>

<p class="definition">Definition at line <a class="el" href="async_8h_source.html#l00050">50</a> of file <a class="el" href="async_8h_source.html">async.h</a>.</p>

</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li><a class="el" href="async_8h_source.html">async.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="structcoap__async__state__t.html">coap_async_state_t</a></li>
    <li class="footer">Generated on Fri Dec 27 2024 09:57:44 for libcoap by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8 </li>
  </ul>
</div>
</body>
</html>
